package com.y3k.service;

import java.util.List;

import sun.reflect.generics.reflectiveObjects.NotImplementedException;

import com.y3k.dao.UserDao;
import com.y3k.model.User;

public class UserService {

	private final UserDao dao = new UserDao();

	public UserService() {

	}

	public void save(User u) throws ServiceException {
		throw new NotImplementedException();
	}

	public void update(User u) throws ServiceException {
		throw new NotImplementedException();
	}

	public void remove(User u) throws ServiceException {
		throw new NotImplementedException();
	}

	public User findByPk(Integer pk) throws ServiceException {
		throw new NotImplementedException();
	}

	public List<User> findAll() throws ServiceException {
		throw new NotImplementedException();
	}

	public User findBy(String username, String password)
			throws ServiceException {
		return dao.findBy(username, password);
	}
}